projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47ab3db
)
(x_display_cursor): Abort if X or Y is out of range.
author
Richard M. Stallman
<rms@gnu.org>
Sun, 21 Dec 1997 01:59:49 +0000
(
01:59
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Sun, 21 Dec 1997 01:59:49 +0000
(
01:59
+0000)
src/xterm.c
patch
|
blob
|
history
diff --git
a/src/xterm.c
b/src/xterm.c
index b772b4974b076f07848fb27697bd1e72ef367fb5..06a40fcdf7e65e9da3b509547c5340bc3c28f088 100644
(file)
--- a/
src/xterm.c
+++ b/
src/xterm.c
@@
-4902,6
+4902,10
@@
x_display_cursor (f, on, x, y)
{
BLOCK_INPUT;
+ if ((unsigned) x >= FRAME_WIDTH (f) + FRAME_LEFT_SCROLL_BAR_WIDTH (f)
+ || (unsigned) y >= FRAME_HEIGHT (f))
+ abort ();
+
if (FRAME_DESIRED_CURSOR (f) == filled_box_cursor)
x_display_box_cursor (f, on, x, y);
else if (FRAME_DESIRED_CURSOR (f) == bar_cursor)